var mySwiper = new Swiper ('.swiper', {
  direction: 'horizontal', // 水平切换选项
   // 垂直切换选项
   autoplay: {
    delay: 3000,
    stopOnLastSlide: false,
    disableOnInteraction: true,
    }, // 循环模式选项
  
  // 如果需要分页器
  pagination: {
    el: '.swiper-pagination',
    type: 'progressbar',
    renderProgressbar: function (progressbarFillClass) {
      return '<span class="' + progressbarFillClass + '"></span>';
    }
},
  
  // 如果需要前进后退按钮
  navigation: {
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev',
  },
  
  effect : 'flip',
  flipEffect: {
    slideShadows : true,
    limitRotation : true,
  }
})        